#include "initial.h"

void sys_initial()
{
	unsigned int i,j;

	P0 = 0xFF;
	P1 = 0xFF;
	P2 = 0xFF;
	P3 = 0xFF;
	
	WDTCON = 0xCF;
	WDTREL = 0x00;
	for(i = 0; i<4; i++)
	{
		P32 = ~P32;
		P33 = ~P33;
		P34 = ~P34;
		P35 = ~P35;
		for(j = 0; j<32767; j++)
		{
			_nop_();
			WDTREL = 0x00;
		}
	}

}